package com.hqyj.ssm.mapper;/*
 * ClassName  TestSql
 * @Author： AJA
 * @Description ：TODO
 *
 * @Date  2022/1/5 8:49
 * @Version 1.0
 **/

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:config/applicationContext.xml"})
public class TestSql {

    @Autowired
    private UserMapper userMapper;

    @Test
    public void selectAll(){
        System.out.println(userMapper.checkUsername("admin"));
    }

    @Test
    public void test01(){

    }

    @Test
    public void test02(){
        System.out.println(userMapper.deleteUserByUsername("aaa"));
    }
}
